﻿using DigitalHealth.PACS.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DigitalHealth.PACS.UserService.Services
{
    public interface IPACSUserServer
    {
        /// <summary>
        /// 查询所有用户
        /// </summary>
        /// <returns></returns>
        IEnumerable<PACSUser> GetUsers();
        /// <summary>
        /// 根据id查询指定用户
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        PACSUser GetUsersById(string id);
        
        void Create(PACSUser user);
        void Update(PACSUser user);
        void Delete(PACSUser user);
        bool UserExists(PACSUser user);
    }
}
